package com.ruoyi.deeplearn.service.impl;

import java.util.List;

import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.deeplearn.mapper.DeepDatasetTagMapper;
import com.ruoyi.deeplearn.domain.DeepDatasetTag;
import com.ruoyi.deeplearn.service.IDeepDatasetTagService;

/**
 * 数据集标记标签Service业务层处理
 * 
 * @author 任伟伟
 * @date 2022-12-10
 */
@Service
public class DeepDatasetTagServiceImpl implements IDeepDatasetTagService 
{
    @Autowired
    private DeepDatasetTagMapper deepDatasetTagMapper;

    /**
     * 查询数据集标记标签
     * 
     * @param moduleId 数据集标记标签主键
     * @return 数据集标记标签
     */
    @Override
    public DeepDatasetTag selectDeepDatasetTagByModuleId(Long moduleId)
    {
        return deepDatasetTagMapper.selectDeepDatasetTagByModuleId(moduleId);
    }

    /**
     * 查询数据集标记标签列表
     * 
     * @param deepDatasetTag 数据集标记标签
     * @return 数据集标记标签
     */
    @Override
    public List<DeepDatasetTag> selectDeepDatasetTagList(DeepDatasetTag deepDatasetTag)
    {
        return deepDatasetTagMapper.selectDeepDatasetTagList(deepDatasetTag);
    }

    /**
     * 新增数据集标记标签
     * 
     * @param deepDatasetTag 数据集标记标签
     * @return 结果
     */
    @Override
    public int insertDeepDatasetTag(DeepDatasetTag deepDatasetTag)
    {
        return deepDatasetTagMapper.insertDeepDatasetTag(deepDatasetTag);
    }

    /**
     * 修改数据集标记标签
     * 
     * @param deepDatasetTag 数据集标记标签
     * @return 结果
     */
    @Override
    public int updateDeepDatasetTag(DeepDatasetTag deepDatasetTag)
    {
        return deepDatasetTagMapper.updateDeepDatasetTag(deepDatasetTag);
    }

    /**
     * 批量删除数据集标记标签
     * 
     * @param moduleIds 需要删除的数据集标记标签主键
     * @return 结果
     */
    @Override
    public int deleteDeepDatasetTagByModuleIds(Long[] moduleIds)
    {
        return deepDatasetTagMapper.deleteDeepDatasetTagByModuleIds(moduleIds);
    }

    /**
     * 删除数据集标记标签信息
     * 
     * @param moduleId 数据集标记标签主键
     * @return 结果
     */
    @Override
    public int deleteDeepDatasetTagByModuleId(Long moduleId)
    {
        return deepDatasetTagMapper.deleteDeepDatasetTagByModuleId(moduleId);
    }
}
